package com.wuze.cloud.request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author wuze
 * @Date 2023/5/8 10:20
 * @ClassName: SysCreateShareQuery
 * @Description: TODO
 */
@Data
public class SysCreateShareQuery implements Serializable {
    private static final long serialVersionUID = -1660599998633147755L;

    @NotNull(message = "文件夹不能为空")
    private Long folderId;
    private Date startDate;
    private Date deadlineDate;
    @NotNull(message = "提取密码不能为空")
    @Length(min = 4, max = 4, message = "提取密码为4位")
    private String password;
    private Integer forever;
}
